<%/**
 * workoutsTimed.jsp
 * 
 * The fourth page of a sequence of forms requisitioning the user for the information about their workout.
 * The complete sequence is:
 * workoutsCalendar.jsp -- Gets date
 * workouts.jsp -- Gets information common between workout types: userID, prescribed, and type
 * workoutsCreateWorkout.jsp -- redirect dummy page, creates the actual workout object and puts in the fields 
 * 	we've already gotten from the user
 * workoutsAMRAP.jsp/workoutsTimed.jsp/workoutsTabata.jsp -- Gets the type-specific workout information
 * workoutsCreateWorkoutTyped.jsp -- redirect dummy page, adds the typed information to our Workout object
 * workoutsAddExercise.jsp -- Allows the user to select individual exercises and append them to the list in our
 *		exercise.
 * workoutsCreateExercise.jsp -- redirect dummy page, adds the exercise to our Workout object
 * workoutsSubmit.jsp -- final page, submits the fully created workout to the database
 *
 * @author Chris Avery
 */%>
 <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@page import="b1w1nn1ng.crossf1t.gui.*"%>
<%@page import="b1w1nn1ng.crossf1t.business.*"%>
<%@page import="java.util.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%  
User user = (User) session.getAttribute("user");
session.setAttribute("user", user);

%>

<html>
	<head>
		<title> Add Workout </title>
		<link rel="stylesheet" type="text/css" href="/crossfit/css/general.css" />
	</head>
	<body>
	<div id="container">
		<!-- This page deliberately contains no navbar: The back button ruins the series of forms -->	
		<h1> Add Workout </h1> <hr />
		<form action="workoutsCreateWorkoutTyped.jsp">
			<div id="alignleft">
			<h2>Input timed workout information: </h2>
			<table><tr>
			<td>Time limit: (seconds)</td><td><input type="text" name="time"><br /></td>
			</tr></table>
			</div>
			<input type="submit" value="Continue">
		</form>
		<input type="button" value="Cancel" onclick="window.location='home.jsp'" />
	</div>
	</body>
</html>
		